package com.dfbz.demo05_成员方法的继承特点;

/**
 * @author lscl
 * @version 1.0
 * @intro:
 */
public class Demo01 {
    public static void main(String[] args) {
        Zi zi = new Zi();

        zi.method();
    }
}

class Fu {
    public void method() {
        System.out.println("我是Fu的method....");
    }
}

class Zi extends Fu {
    public void method() {
        System.out.println("我是Zi的method....");
    }
}